package org.csu.mypetstorebackstage.persistence;


import org.csu.mypetstorebackstage.domain.Order;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository

public interface OrderMapper {

    List<Order> getOrdersByUserId(String userId);

    Order getOrderByOrderId(int orderId);

    void deleteOrderByOrderId(int orderId);

    void deleteOrdersByUserId(String userId);
    List<Order> getAllOrders();
    void insertOrder(Order order);
    boolean modifyOrder(Order order);
    void updateOrderStatus(Order order);
    void SendOutOrder(int orderId);

}
